<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>goods add</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/type.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/tab.css" />
<script type="text/javascript" src="__PUBLIC__/js/jquery.min.js"></script>


</head>
<body>

<table class="classify_table1">
	<tr>
		<td><span class="classify_table_title">订单信息</span> <span
			class="classify_table_button">
			<button><a href="__CONTROLLER__/index">返回</a></button>
		</span> <span class="classify_table_button">
	</tr>
	<tr>
		<td>
		<div class="goods_add_section">
		<ul id="tabs">
			<li><a href="#" title="tab1">顾客资料</a></li>
			<li><a href="#" title="tab2">发送地</a></li>
			<li><a href="#" title="tab3">目的地</a></li>
			<li><a href="#" title="tab4">清单</a></li>
			<li><a href="#" title="tab5">合计</a></li>
		</ul>

		<div id="content">
		<hr>
		<div id="tab1" class="tab ff"><span>顾客编号：{$userdata['UserId']}</span><br>
		<span>顾客名称：{$userdata['UserName']}</span><br>
		<span>顾客邮箱：{$userdata['Email']}</span><br>
		</div>

		<div id="tab2" class="tab ff"><span>发送地址：{$orderdata['ExportAddress']}</span><br>
		<span>发送人：{$orderdata['SendName']}</span><br>
		<span>发货电话：{$orderdata['SendPhone']}</span><br>
		</div>
		<div id="tab3" class="tab ff"><span>收货地址：{$orderdata['ImportAddress']}</span><br>
		<span>收货人：{$orderdata['PickName']}</span><br>
		<span>收货电话：{$orderdata['PickPhone']}</span></div>
		<div id="tab4" class="ff"><span id="ff">
		<table class="goods_add_table">
			<tr>
				<td class="classify_thead_title">商品编号</td>
				<td class="classify_thead_title">商品名称</td>
				<td class="classify_thead_title">商品颜色</td>
				<td class="classify_thead_title">商品型号</td>
				<td class="classify_thead_title">单价</td>
				<td class="classify_thead_title">数量</td>
			</tr>
			<foreach name="orderdetaildata" item="v">
			<tr>
				<td class="classify_tbody">{$v['GoodId']}</td>
				<td class="classify_tbody">{$v['GoodName']}</td>
				<td class="classify_tbody">{$v['Color']}</td>
				<td class="classify_tbody">{$v['Version']}</td>
				<td class="classify_tbody">{$v['Price']}</td>
				<td class="classify_tbody">{$v['GoodCount']}</td>
			</tr>
			</foreach>
		</table>
		</span></div>
		<div id="tab5" class="tab ff"><span>状态：<eq name="orderdata.OrderStatus" value="0">待付款</eq>
		<eq name="orderdata.OrderStatus" value="2">待收货</eq>
		<eq name="orderdata.OrderStatus" value="3">待评价</eq>
		<eq name="orderdata.OrderStatus" value="4">已完成</eq>
		</span><br>
		<span>订单附言：{$orderdata['Remark']}</span><br>
		<span>合计总额：{$orderdata['TotalMoney']}</span><br>
		</div>
		</div>
		</div>
		</td>
	</tr>
</table>
</div>


<script>
		$(function() {
			$("#content div").hide(); // Initially hide all content
			$("#tabs link:first").attr("id","current"); // Activate first tab
			$("#content div:first").fadeIn(); // Show first tab content
		    $('#tabs a').click(function(e) {
		        e.preventDefault();        
		        $("#content div.ff").hide(); //Hide all content
		        $("#tabs li").attr("id",""); //Reset id's
		        $(this).parent().attr("id","current"); // Activate this
		        $('#' + $(this).attr('title')).fadeIn(); // Show content for current tab
		    });
		});

	</script>

</body>
</html>